/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package client;

import java.security.PublicKey;

/**
 *
 * @author caos
 */
public class MessagesBuilderClient {
    private CryptHelper cH;
    MessagesBuilderClient(CryptHelper cH)
    {
        this.cH=cH;
    }
   
    static String LogoutMessage()
    {
        return "LOGOUT";
    }
    
    static String Reqlist()
    {
        return "REQLIST";
    }
    
    static String LoginMessage(String userName, String password)
    {
        return "LOGIN "+ userName + " " + CryptHelper.MD5(password);
    }
    
    String RegistrationMessage(String userName, String password)
    {
        return "REG " +userName + " " + cH.AESEncryptLocal(CryptHelper.MD5(password));
    }
}
